/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.clinicalInformation.Family;
import systole.exceptions.ExceptionDAO;

/**
 *
 * @author jmj
 */
public interface FamilyBroker {

       /**
     * @param family
     * @throws ExceptionDAO
     */
    public void insert(Family family) throws ExceptionDAO;

    /**
     * @param family
     * @throws ExceptionDAO
     */
    public void update(Family family) throws ExceptionDAO;

    /**
     * @return list of family.
     * @throws ExceptionDAO
     */
    public List<Family> getAllFamilies() throws ExceptionDAO;

    /**
     *
     * @param name
     * @param id
     * @return if exist family
     * @throws ExceptionDAO
     */
    public boolean existFamily(String name, Integer id) throws ExceptionDAO;

    /**
     * 
     * @param name
     * @return
     * @throws ExceptionDAO
     */
    public Family getFamilyByName(String name)throws ExceptionDAO ;
}
